package com.qk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qk.common.PageResult;
import com.qk.dto.BusinessQueryDTO;
import com.qk.dto.BusinessUpdateDTO;
import com.qk.entity.Business;

/**
 * @author 28188
 */
public interface BusinessService extends IService<Business> {
    PageResult<Business> pageBusinesses(BusinessQueryDTO businessQueryDTO);

    Business getBusinessById(Integer id);

    void updateBusinessById(BusinessUpdateDTO businessUpdateDTO);

    void backBusiness(Integer id);

    void toCustomer(Integer id);


    void assignBusiness(Integer businessId, Integer userId);

    void saveBusiness(Business business);

    PageResult<Business> pagePool(BusinessQueryDTO businessQueryDTO);
}
